<template>
  <div class="header">
    <div class="content">
      <p class="back">
        <img @click="$router.goBack()" v-show="showBack" src="../assets/images/ico_back.png" alt="">
      </p>
      <p class="title">{{title}}</p>
      <p class="right"></p>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
    }
  },
  props: {
    title: {
      type: String,
      default: '标题'
    },
    showBack: {
      type: Boolean,
      default: true
    }
  },
  computed: {

  },
  methods: {

  },
  mounted () {

  }
}
</script>

<style scoped lang="scss">
@import 'styles/common.scss';
.header{
  padding-top: rem(101);
  .content{
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: rem(100);
    background: #fff;
    border-bottom: rem(1) solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .back{
      height: rem(100);
      width: rem(100);
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      img{
        width: rem(50);
        height: rem(50);
      }
    }
    .title{
      font-size: rem(34);
      flex: 5;
    }
    .right{
      flex: 1;
    }
  }
}
</style>
